﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace ConsoleApplication1
{
    [RoutePrefix("api/login")]// 获取路由前缀
    public class loginController: ApiController
    {
        [HttpGet]
        [Route("test")]
        public string getPrint()
        {

            return "接口测试成功!!!";
        }

        [HttpPost]
        [Route("{doc_no}")]
        public string getPrint(string doc_no)
        {
            printServiceImpl ps = new printServiceImpl();
            string doc = ps.printUpLabel(doc_no);
            return "工单单号为:" + doc;
        }


        [HttpGet]
        [Route("user/{username}")]
        public string login(string username)
        {
            string result = "";
            result = username + "88888";


            Console.WriteLine(result);

            return result;
        }
    }
}
